/**
 * siderHide 配置侧边栏不显示
 * */ 
import Home from '@/views/Home/index.jsx'
import Login from '@/views/Login/index.jsx'
import Error from '@/views/Error/index.jsx'
import Pdca from '@/views/Board/Pdca/index.jsx'
import PicBed from '@/views/Tool/PicBed/index.jsx'
import PdcaEdit from '@/views/Board/Pdca/edit'
import PdcaReport from '@/views/Board/Pdca/report'
import DataSet from '@/views/System/Dataset'
import DataSetEdit from '@/views/System/Dataset/edit'
import AIChat from '../views/AIChat'

const Routers = [
  {
    path: "/login",
    element: <Login />
  },
  {
    path: "/",
    title: "首页",
    element: <Home />,
    children: [
      {
        path: "/board",
        title: '工作台',
        children: [
          {
            path: "pdca",
            title: 'PDCA工作台',
            element: <Pdca />,
          },
          {
            path: "ai-chat",
            title: 'AI-Chat',
            element: <AIChat />,
          },
          {
            path: "pdca/edit",
            title: 'PDCA编辑',
            element: <PdcaEdit />,
            siderHide: true, // 侧边栏隐藏
          },
          {
            path: "pdca/report",
            title: '创建日报',
            element: <PdcaReport />,
            siderHide: true, // 侧边栏隐藏
          }
        ]
      },
      {
        path: "/tool",
        title: '系统工具',
        children: [
          {
            path: "picture-bed",
            title: '图床',
            element: <PicBed />
          }
        ]
      },
      {
        path: "/system",
        title: '系统管理',
        children: [
          {
            path: "dataset",
            title: '数据集',
            element: <DataSet />,
          },
          {
            path: "dataset/edit",
            title: '数据集编辑',
            element: <DataSetEdit />,
            siderHide: true, // 侧边栏隐藏
          }
        ]
      }
    ]
  },
  {
    path: '*',
    element: <Error />
  }
]

export default Routers
